package com.alcj.service;

import com.alcj.model.User;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author :chenxh
 * @version :v1.0
 * @Package :com.alcj.service.impl
 * @Description :${TODO}(用一句话描述改文件的作用)
 * @date :2017/9/5 11:23
 */

public interface UserService {
    public User getUser();

    /**
     * @Author: chenxh
     * @Description:用户注册保存
     * @Date: 2017/9/7 16:29
     * @param: record
     */
    public int registerUser(User record) throws Exception;

    /**
     * @Author: chenxh
     * @Description:用户登录验证
     * @Date: 2017/9/7 16:30
     * @param: record
     */
    public String checkUserInfo(User record,HttpSession session) throws Exception;

    /**
     * @Author: chenxh
     * @Description:手机号用户名验证
     * @Date: 2017/9/7 16:30
     * @param: record
     */
    public boolean checkUserExist(String tagName) throws Exception;

    /**
     * @Author: chenxh
     * @Description:原密码正确性验证
     * @Date: 2017/10/23 16:30
     * @param: userid
     * @param: userpwd
     */
    public boolean checkPassword(String userId ,String userPwd) throws Exception;

    /**
     * @Author: chenxh
     * @Description:获取用户信息
     * @Date: 2017/9/7 16:30
     * @param: record
     */
    public User getUserInfo(User record) throws Exception;

    /**
     * @Author: chenxh
     * @Description:更新用户信息
     * @Date: 2017/9/7 16:31
     * @param: record
     */
    public int
    editUserInfo(User record) throws Exception;

    /**
     * @Author: chenxh
     * @Description:获取所有用户
     * @Date: 2017/9/7 16:31
     * @param: record
     *
     */
    public List<User> getAllUser(User record) throws Exception;

    /**
     * @Author: chenxh
     * @Description:用户登录验证
     * @Date: 2017/9/7 16:30
     * @param: record
     */
    public int uplPwdByTelphone(User record) throws Exception;
}
